<div class="edit">
    <form id="editForm" method="post">
        <div id="win"></div>
        <table class="infobox" width="100%" border="0" cellspacing="5px"
               cellpadding="1px">
            <tr>
                <td width="23%"><label>名称：</label></td>
                <td width="77%"><input name="name" type="text" style="width:200px;" value="${(region.name)!''}"
                                       class="easyui-validatebox" autocomplete="off"/></td>
            </tr>
            <tr>
                <td width="23%"><label>拼音：</label></td>
                <td width="77%"><input name="nameEn" type="text" style="width:200px;" value="${(region.nameEn)!''}"
                                       class="easyui-validatebox" autocomplete="off"/></td>
            </tr>
            <tr>
                <td><label>上级区域：</label></td>
                <td><select id="pid" name="pid" style="width:156px;"/></td>
            </tr>
        </table>
        <input hidden type="text" name="id" value="${(region.id)!''}">
    </form>
</div>
<script type="text/javascript">
    $(function () {
        $("#pid").combotree({
            url:'/region/getAllData',
            editable:false,
            onLoadSuccess:function (node,data) {
                $("#pid").combotree('setValue','${(region.pid)!''}')
            },
            loadFilter: function(rows){
                return convertTree(rows);
            }
        });
    });
</script>